package com.fourool.goodsmall.service.impl;

import com.fourool.goodsmall.entity.GGoods;
import com.fourool.goodsmall.mapper.GGoodsMapper;
import com.fourool.goodsmall.service.GGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class GGoodsServiceImpl implements GGoodsService {

    @Autowired
    private GGoodsMapper goodsMapper;

    @Override
    public List<GGoods> findAll() {
        return goodsMapper.findAll();
    }

    @Override
    public GGoods findById(Integer id) {
        return goodsMapper.findById(id);
    }
}